home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
how to learn assembler.adf
/
CH4
/
4_1C.asm
< prev
next >
Wrap
Assembly Source File
|
1988-02-25
|
364b
|
14 lines
adding2:
clr.l D0 ; Erase D0
move.l #table,a0 ; Put the address of table in A0
move #$5,d1 ; Put how many table entries in D1
loop:
add (a0)+,d0 ; Add a word
subq #1,d1 ; Decrement counter
bne loop ; Continue if non-zero
rts ; return
table: dc.w 2,4,6,8,10
end